package PO;

import java.io.Serializable;

public class FramePO implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int id;
	private String name;
	private int LessonTong;
	private int LessonXuan;
	private int LessonZhuan;
	private int Year;
	private int Graduate;
	private int DesignLesson;
	boolean apply;

	public FramePO(int i, String n, int L1, int L2, int L3, int Y, int G, int d) {
		id = i;
		name = n;
		LessonTong = L1;
		LessonXuan = L2;
		LessonZhuan = L3;
		Year = Y;
		Graduate = G;
		DesignLesson = d;
		apply = false;
	}

	public FramePO(int i, String n, int L1, int L2, int L3, int Y, int G,
			int d, boolean a) {
		id = i;
		name = n;
		LessonTong = L1;
		LessonXuan = L2;
		LessonZhuan = L3;
		Year = Y;
		Graduate = G;
		DesignLesson = d;
		apply = a;

	}

	public int getID() {

		return id;
	}

	public String getName() {

		return (name);
	}

	public int getLessonTong() {
		return (LessonTong);

	}

	public void apply() {
		apply = true;

	}

	public void cancelapply() {

		apply = false;
	}

	public boolean getApply() {

		return (apply);
	}

	public int getLessonXuan() {
		return (LessonXuan);

	}

	public int getLessonZhuan() {
		return (LessonZhuan);

	}

	public int getYear() {
		return (Year);

	}

	public int getGraduate() {
		return (Graduate);
	}

	public int getDesign() {
		return (DesignLesson);
	}

	public void update(int i, String n, int L1, int L2, int L3, int Y, int G,
			boolean a) {
		id = i;
		name = n;
		LessonTong = L1;
		LessonXuan = L2;
		LessonZhuan = L3;
		Year = Y;
		Graduate = G;
		apply = a;

	}
}
